import request from '@/router/axios';

/*
 * 客户群管理-列表
 * */
export function getWorkRoomList(query) {
    return request({
        url: '/cp/workroom/page',
        method: 'get',
        params: query
    });
}

/*
 * 客户群管理-同步群
 * */
export function putSync(query) {
    return request({
        url: '/cp/workroom/syn',
        method: 'put',
        params: query
    });
}

/*
*
客户群成员管理列表
* */
export function getWorkContactRoom(query) {
    return request({
        url: '/cp/workcontactroom/page',
        method: 'get',
        params: query
    });
}

/*
 * 统计折线图
 * */
export function getLineChart(query) {
    return request({
        url: '/cp/workroom/statistics',
        method: 'get',
        params: query
    });
}

/*
*
统计分页数据
* */
export function getStatisticsList(query) {
    return request({
        url: '/cp/workroom/statisticsindex',
        method: 'get',
        params: query
    });
}

//客户群统计基础信息
export function getBasicInfo() {
    return request({
        url: '/cp/workroom/statistics-overview',
        method: 'get'
    });
}

//成员持群信息分页查询
export function getGroupPage(obj) {
    return request({
        url: '/cp/workroom/hold-room-page',
        method: 'get',
        params: obj
    });
}
